# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=goreman
pkgver=0.3.15
pkgrel=3
pkgdesc="Tool to manage Procfile-based applications"
url="https://github.com/mattn/goreman"
arch="all"
license="MIT"
makedepends="go"
source="https://github.com/mattn/goreman/archive/v$pkgver/goreman-$pkgver.tar.gz"
options="!check" # No test suite

export GOFLAGS="$GOFLAGS -modcacherw -trimpath"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build -o bin/goreman .
}

package() {
	install -Dm755 bin/goreman "$pkgdir"/usr/bin/goreman
}

sha512sums="
62b725e537bba7c3bc89c74ea300e2974db1957dc4bb1a9cc9c98970588aeefd33ab3864a5fd4cfc90b9245c329b46dd68fd88dc5664722920de722925b552c6  goreman-0.3.15.tar.gz
"
